#include "RandomGenerationCrossover.h"

RandomGenerationCrossover::RandomGenerationCrossover(Environment* environment) {
    this->environment = environment;
}

void RandomGenerationCrossover::cross(Solution* p1, Solution* p2, Solution* &s1, Solution* &s2) {
    vector<Solution*> solutions;
    environment->generateRandomPopulation(solutions, 2);
    s1 = solutions[0];
    s2 = solutions[1];
}
